package com.kevin.j2eeToolBox.patterns.abstractFactory;

import org.junit.BeforeClass;
import org.junit.Test;

public class AbstractFactory {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Test
	public void AbstractFactoryTest() {
		Veggie tv, nv;
		Fruit tf, nf;
		TropicalGardener tg = new TropicalGardener();
		NorthernGardener ng = new NorthernGardener();
		tv = tg.createVeggie("热带菜叶");
		tf = tg.createFruit("海南椰子");
		nv = ng.createVeggie("东北甜菜");
		nf = ng.createFruit("雪梨");

	}
}
